/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.text_text.service;

import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.text_text.entity.TextText;
import com.thinkgem.jeesite.modules.text_text.dao.TextTextDao;

/**
 * 测试用Service
 * @author ZhaoHai
 * @version 2017-07-02
 */
@Service
@Transactional(readOnly = true)
public class TextTextService extends CrudService<TextTextDao, TextText> {

	public TextText get(String id) {
		return super.get(id);
	}
	
	public List<TextText> findList(TextText textText) {
		return super.findList(textText);
	}
	
	public Page<TextText> findPage(Page<TextText> page, TextText textText) {
		return super.findPage(page, textText);
	}
	
	@Transactional(readOnly = false)
	public void save(TextText textText) {
		super.save(textText);
	}
	
	@Transactional(readOnly = false)
	public void delete(TextText textText) {
		super.delete(textText);
	}
	@Transactional(readOnly = false)
	public void adddatas(){
		for(int i=0;i<100;i++){
			TextText text=new TextText();
			String textname=""+i;
			text.setTextName("标题"+textname);
			text.setTextConcent("内容："+textname);
			dao.listyInsert(text);
		}
	} 
}